﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Golf.Core" namespace="Golf.Core">
  <class name="Hole" table="tb_Hole" lazy="false">
    <id name="Id">
      <column name="HoleId"/>
      <generator class="native" />
    </id>
    <many-to-one name="Course" column="CourseId" class="Course" not-null="true" foreign-key="FK_Hole_Course" unique-key="UQ_Hole_Course_Ordinal" />
    <property name="Ordinal" not-null="true" unique-key="UQ_Hole_Course_Ordinal" />
    <property name="Yardage" not-null="true" />
    <property name="Par" not-null="true" />
  </class>
</hibernate-mapping>